Repository navigation
GLCM module - #455
Open
kelewinska wants to merge 18 commits into
Open
GLCM module#455kelewinska wants to merge 18 commits into
kelewinska wants to merge 18 commits into
Conversation
i am not sure whether it is the most fitting placement. apologies if not
…nction reformatting
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Hi David,
In response top #449 I added a new high-level module to calculate second-order co-occurrence Metrics (GLCM): CONtrast, DISsimilarity, HOMogenity, ENTropy, and UNIformity. The returned statistics are aggregated over all main directions, i.e., unlike for some implementations this module can't be run only for a specific direction in mind.
The GLCM is controlled with
GLCM_WINDOWwhich defines the size (in px) of the squared moving window used to calculate statistics. Furthermore, there isGLCM_MINandGLCM_MAXwith which user defines the range of grey levels to be used. All values below theGLCM_MINare mapped to the declared min value, while all values greater thanGLCM_MAXare rescaled to the declared max value. This way when running GLCM on an index [-1, 1] one can control for it with -10000 and 10000, respectively, while GLCM on NIR band could be done with, for example for a range of [1000, 7000].Importantly, the following scaling factors are used for the output values: DIS ×100, CON ×10, HOM ×10000, ENT ×1000, UNI ×10000
The prm file does not include
READ_ERROR_PRIMARY = SKIP- issue #450I tested the module and it seems to work (for me ;) )
Cheers,
k